import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) {

        try (FileOutputStream fos =new FileOutputStream("fos.txt");){
            fos.write(1);
            System.out.println("交成功");
            System.out.println("分支上加了句输出");
            System.out.println("主线上加了一句输出");
            System.out.println("我又加了输出");
            System.out.println("我服了");
            System.out.println("想睡觉啊");
            System.out.println("不吃香菜");

            fos.close();
         } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
